package com.huiyujinrong.qiangdanbao.utils;

import android.app.Activity;
import android.content.Intent;
import android.webkit.JavascriptInterface;

import com.huiyujinrong.qiangdanbao.activity.login.LoginActivity;


public class H5JsInterface {
    public Activity activity;

    public H5JsInterface(Activity activity) {
        this.activity = activity;
    }
    @JavascriptInterface
    public void toSitePage(){
        Intent intent = new Intent(activity, LoginActivity.class);
        activity.startActivity(intent);
        activity.finish();
    }
}
